﻿<%@ Page Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true"
    CodeBehind="List.aspx.cs" Inherits="Mang24k99.Web.CLMN.KtClmnItems.List" Title="Untitled Page" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">
   
    function GoEdit(id)
    {
        
        var pageUrl="Edit.aspx";
        pageUrl=pageUrl+"?id="+id;
        GoPageUrl(pageUrl);
        return false;
    }
    
    $(document).ready(
        function ()
        {
       addTrHover("Table1");
       SetIfrHeight();
       InitialMsg();
       
        }
    )
    
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <table class="nav_Table1" border="0" cellpadding="0" cellspacing="0" width="100%"
            height="34">
            <tr>
                <td class="nav">
                    <asp:Label runat="server" ID="lblNav" Text="通用栏目维护>>>列表"></asp:Label>
                </td>
            </tr>
        </table>
        <br />
        <table class="nav_Table1" border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>
                    <table width="50%" align="center" style="text-align: center">
                        <tr>
                            <td>
                            </td>
                            <td style="white-space: nowrap">
                                <asp:LinkButton runat="server" ID="lnkbtnAdd" Text="新增" CssClass="col" OnClick="lnkbtnAdd_Click"></asp:LinkButton>
                            </td>
                            <td style="white-space: nowrap">
                                <asp:LinkButton runat="server" ID="lnkbtnList" CssClass="col_on" Text="列表" OnClick="lnkbtnList_Click"
                                    OnClientClick="return false;"></asp:LinkButton>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table class="nav_Table1" border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>
                    <table width="50%" align="center" style="text-align: center">
                        <tr>
                            <td>
                                <asp:RadioButtonList ID="rblList" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"
                                    RepeatLayout="Flow" OnSelectedIndexChanged="rblList_SelectedIndexChanged">
                                    <asp:ListItem Selected="True" Value="-1">一级</asp:ListItem>
                                    <asp:ListItem Value="1">二级</asp:ListItem>
                                    <asp:ListItem Value="2">三级</asp:ListItem>
                                    <asp:ListItem Value="3">四级</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td style="white-space: nowrap">
                            </td>
                            <td style="white-space: nowrap">
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table class="nav_Table1" border="0" cellpadding="0" cellspacing="0" width="100%" runat="server" id="tdDdlList0">
            <tr>
                <td>
                    <table width="80%" align="center" style="text-align: center" >
                        <tr>
                            <td>
                            </td>
                            <td style="white-space: nowrap" runat="server" id="tdDdlList1">
                                一级栏目<asp:DropDownList ID="ddlList1" runat="server" CssClass="forms" AutoPostBack="True"
                                    OnSelectedIndexChanged="ddlList1_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td style="white-space: nowrap" runat="server" id="tdDdlList2">
                                二级栏目<asp:DropDownList ID="ddlList2" runat="server" CssClass="forms" AutoPostBack="True"
                                    OnSelectedIndexChanged="ddlList2_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td style="white-space: nowrap" runat="server" id="tdDdlList3">
                                三级栏目<asp:DropDownList ID="ddlList3" runat="server" CssClass="forms" AutoPostBack="True"
                                    OnSelectedIndexChanged="ddlList3_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td style="white-space: nowrap" runat="server" id="tdDdlList4">
                                <asp:Button ID="btnSearch" runat="server" Text="查询" CssClass="form_btn" OnClick="btnSearch_Click" />
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <br />
        <table id="Table1" class="tb_table2">
            <asp:Repeater ID="Repeater1" runat="server" OnPreRender="Repeater1_PreRender" OnItemCommand="Repeater1_ItemCommand">
                <HeaderTemplate>
                    <thead>
                        <tr>

                            <th class="tb_title2">
                                序号
                            </th>
 <th class="tb_title2">
                                栏目编号
                            </th>
                            <th class="tb_title2">
                                栏目名称
                            </th>

                            <th class="tb_title2">
                                栏目别称
                            </th>

                            <th class="tb_title2">
                                子栏目数量
                            </th>

                           

                            <th class="tb_title2">
                                操作选项
                            </th>

                        </tr>
                    </thead>
                    <tbody>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td class="tb_txt2">
                            <asp:Label runat="server" Text='<%#Container.ItemIndex+1 %>'></asp:Label>
                        </td>
                          <td class="tb_txt2">
                            <asp:Label runat="server" ID="lblChannelNO" Text='<%#Eval("ColumnNO")%>'></asp:Label><div
                                id='Div1' class=''>
                        </td>
                        <td class="tb_txt2">
                            <asp:Label runat="server" ID="lblColumnName" Text='<%#Common.PageHelper.HtmlEncode(Eval("ColumnName"))%>'></asp:Label><div
                                id='' class=''>
                        </td>
                        <td class="tb_txt2">
                            <asp:Label runat="server" ID="lblColumnAlias" Text='<%#Common.PageHelper.HtmlEncode(Eval("ColumnAlias"))%>'></asp:Label><div
                                id='' class=''>
                        </td>
                        <td class="tb_txt2">
                            <asp:Label runat="server" ID="lblChildNum" Text='<%#Eval("ChildNum")%>'></asp:Label><div
                                id='' class=''>
                        </td>
                      
                        <td class="tb_txt2">
                            <asp:Button runat="server" ID="btnModify" CssClass="form_btn" Text="修改" CommandName="modify"
                                CommandArgument='<%#Eval("ColumnNO") %>' />
                            <asp:Button runat="server" ID="btnDelete" CssClass="form_btn" Text="删除" CommandName="delete"
                                CommandArgument='<%#Eval("ColumnNO") %>' OnClientClick="return ConfirmDelete()" />
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </tbody>
                </FooterTemplate>
            </asp:Repeater>
        </table>
        <%if (this.Repeater1.Controls.Count == 0)
          {
              Response.Write("记录数目为0");
          } %>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页"
            NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged" PrevPageText="上一页"
            ShowInputBox="Always" SubmitButtonText="GO" AlwaysShow="True" CssClass="AspNetPager"
            CustomInfoHTML="  共&lt;span class=&quot;AspNetPager_current&quot;&gt;{0}&lt;/span&gt;页"
            CurrentPageButtonClass="AspNetPager_current" CustomInfoClass="AspNetPager_custom"
            HorizontalAlign="Right" InputBoxClass="AspNetPager_txt" SubmitButtonClass="AspNetPager_btn"
            CurrentPageButtonStyle="" PagingButtonSpacing="1px" ShowCustomInfoSection="Right"
            Visible="false">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
